<?php
class attrtagController extends Controller{
	public function __construct(){
		parent::__construct();
		
	}
	public function s(){
		return array('attrtag');
	}
	public function index(){
	
	}
	//属性列表
	public function mylist(){
		
		$condition=array();
		$extra='';
		$return=$this->s_0->mylist($condition,$extra);
		
		
		include($this->viewer_dir.'attrtag/mylist.php');
	}
	//属性对应的文章
	public function arc_list(){
		$tagid=intval($_GET['tagid']);
		if($tagid>0){
			$r=$this->s_0->is_exist2($tagid);
			if(!$r) jump('attrtag','mylist');
			$this->s_0->update_hits();
			
			$taginfo=$this->s_0->get_taginfo();
			$tag=addslashes($taginfo['tag']);
			
			$condition=array();
			//$condition['tag']=$tag;
			$condition['tagid']=$tagid;
			$extra=" and `a`.`status`='1' and `l`.`tag`='{$tag}' ";
			$return=$this->s_0->arc_list($condition,$extra);
			
			$in_=$this->s_0->in_($tag);
			
			
			
			include($this->viewer_dir.'attrtag/arc_list.php');
		}else{
			jump('attrtag','mylist');
		}
	}
	
//
}